/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package easybooking.report;

import java.io.Serializable;

/**
 * This class display single paragraphs. The paragraph content is saved as String.
 *
 * @author Hakan Keles
 */
public class SimpleParagraph extends Paragraph implements Serializable {

    /**
     * Content of the paragraph.
     */
    private String text = "";

    /**
     * This constructor allows to declare the content of a <code>SimpleParagraph</code>-object
     * already at the instantiation.
     *
     * @param value the content of the paragraph
     */
    public SimpleParagraph(String value) {
        this.text = value;
    }

    /**
     * Read-out the content.
     *
     * @return Content as String
     */
    public String getText() {
        return text;
    }

    /**
     * Overwrite the content.
     *
     * @param text the new content of the paragraph.
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * Convert the <code>SimpleParagraph</code>-object to a String.
     * @return the paragraph as string
     */
    @Override
    public String toString() {
        return this.text;
    }
}



